import { resultSuccess } from '../_util';
const menusList = [
  {
    path: '/index',
    name: 'index',
    component: 'LAYOUT',
    redirect: '/index/index',
    meta: {
      icon: 'DashboardOutlined',
      title: '统计查询',
    },
    children: [
      {
        path: 'index',
        name: 'index',
        component: '/index/index',
        meta: {
          title: '统计查询',
        },
      },
    ],
  },
  {
    path: '/personalInformation',
    name: 'personalInformation',
    component: 'LAYOUT',
    redirect: '/personalInformation/personalInformation',
    meta: {
      icon: 'DashboardOutlined',
      title: '人员信息管理',
    },
    children: [
      {
        path: 'personalInformation',
        name: 'infpersonalInformationo',
        component: '/personalInformation/personalInformation',
        meta: {
          title: '人员信息',
        },
      },
      {
        path: 'personnelChanges',
        name: 'personnelChanges',
        component: '/personalInformation/personnelChanges',
        meta: {
          title: '人员异动',
        },
      },
    ],
  },
  {
    path: '/management',
    name: 'Management',
    component: 'LAYOUT',
    redirect: '/management/management',
    meta: {
      icon: 'DashboardOutlined',
      title: '项目管理',
    },
    children: [
      {
        path: 'management',
        name: 'management',
        component: '/management/management',
        meta: {
          title: '项目管理',
        },
      },
    ],
  },
  {
    path: '/certificate',
    name: 'Certificate',
    component: 'LAYOUT',
    redirect: '/certificate/certificate',
    meta: {
      icon: 'DashboardOutlined',
      title: '证件管理',
    },
    children: [
      {
        path: 'certificate',
        name: 'certificate',
        component: '/certificate/certificate',
        meta: {
          title: '证件管理',
        },
      },
    ],
  },

  {
    path: '/contractMmanagement',
    name: 'contractMmanagement',
    component: 'LAYOUT',
    redirect: '/contractMmanagement/contractMmanagement',
    meta: {
      icon: 'DashboardOutlined',
      title: '合同管理',
    },
    children: [
      {
        path: 'contractMmanagement',
        name: 'contractMmanagement',
        component: '/contractMmanagement/contractMmanagement',
        meta: {
          title: '合同分类管理',
        },
      },
      {
        path: 'contractCreated',
        name: 'contractCreated',
        component: '/contractMmanagement/contractCreated',
        meta: {
          title: '合同签章',
        },
      },
      {
        path: 'contractPush',
        name: 'contractPush',
        component: '/contractMmanagement/contractPush',
        meta: {
          title: '合同推送',
        },
      },
    ],
  },
  {
    path: '/wagesandsocialsecurity',
    name: 'wagesandsocialsecurity',
    component: 'LAYOUT',
    redirect: '/wagesandsocialsecurity/wagesandsocialsecurity',
    meta: {
      icon: 'DashboardOutlined',
      title: '工资社保管理',
    },
    children: [
      {
        path: 'wagesandsocialsecurity',
        name: 'wagesandsocialsecurity',
        component: '/wagesandsocialsecurity/wagesandsocialsecurity',
        meta: {
          title: '工资社保管理',
        },
      },
    ],
  },
  {
    path: '/element',
    name: 'element',
    component: 'LAYOUT',
    redirect: '/element/recruits',
    meta: {
      icon: 'DashboardOutlined',
      title: '招聘管理',
    },
    children: [
      {
        path: 'recruits',
        name: 'recruits',
        component: '/element/recruits',
        meta: {
          title: '招聘管理',
        },
      },
    ],
  },
  {
    path: '/permission',
    name: 'permission',
    component: 'LAYOUT',
    redirect: '/permission/account',
    meta: {
      icon: 'DashboardOutlined',
      title: '权限管理',
    },
    children: [
      {
        path: 'account',
        name: 'account',
        component: '/permission/account',
        meta: {
          title: '账户管理',
        },
      },
      {
        path: 'cols',
        name: 'cols',
        component: '/permission/cols',
        meta: {
          title: '角色管理',
        },
      },
      {
        path: 'menu',
        name: 'menu',
        component: '/permission/menu',
        meta: {
          title: '菜单管理',
        },
      },
    ],
  },
  {
    path: '/feedback',
    name: 'Feedback',
    component: 'LAYOUT',
    redirect: '/feedback/feedback',
    meta: {
      icon: 'DashboardOutlined',
      title: '信息反馈',
    },
    children: [
      {
        path: 'feedback',
        name: 'feedback',
        component: '/feedback/feedback',
        meta: {
          title: '信息反馈',
        },
      },
    ],
  },
];

export default [
  {
    url: '/api/menus',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(menusList);
    },
  },
];
